package com.bit.ioc.service;

import com.bit.ioc.model.Student;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class UserService {
//    @Qualifier("s1")
    @Autowired
    private Student s3;

//    @Resource(name = "s2")
//    private Student s1;
    public void print(){
        System.out.println("do Service");
        System.out.println(s3);
    }
}
